package com.neusoft.oauth2server;

import org.springframework.core.io.ClassPathResource;
import org.springframework.security.rsa.crypto.KeyStoreKeyFactory;

public class Test {
    public static void main(String[] args) {
        KeyStoreKeyFactory keyStoreKeyFactory = new KeyStoreKeyFactory(new ClassPathResource("jwt.jks"), "123456".toCharArray());
        keyStoreKeyFactory.getKeyPair("jwt", "123456".toCharArray());
        ClassPathResource classPathResource = new ClassPathResource("jwt.jks");
    }
}
